import request from '@/utils/request'

export function consignIndentList (data) { //寄卖订单
  return request({
    url: '/oms/order/admin/page',
    method: 'get',
    params :  data
  })
}
export function ransomIndentList (data) { //赎回订单
  return request({
    url: '/oms/order/admin/redemption',
    method: 'get',
    params :  data
  })
}
export function usersales (orderId,logisticsCompanyCode,logisticsNo,uuid) { //用户退货
  return request({
    url: '/oms/order/wfr/' + orderId + '?logisticsCompanyCode=' + logisticsCompanyCode + '&logisticsNo='+logisticsNo + '&uuid=' + uuid,
    method: 'put',
  })
}
export function getLogisticsInfo (no) { //获取物流单号对应的物流公司
  return request({
    url: '/logistics/analyze',
    method: 'get',
    params: {no}
  })
}
